@layout("/common/_container.html"){
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/css/plugins/steps/jquery.steps.css"/>
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/plugin/gooflow/GooFlow.css"/>
<style>
    .wizard > .content{
        height: 700px;
    }
    .wizard, .tabcontrol {
        display: block;
        width: 100%;
        overflow: visible;
    }
    .other_bar{
        margin-bottom: 20px;
    }
</style>
<svg hidden="true">
    <defs >
        <!--<marker id="arrow1" viewBox="0 0 6 6" refX="5" refY="3" markerUnits="strokeWidth" markerWidth="6" markerHeight="6" orient="auto"><path d="M 0 0 L 6 3 L 0 6 z" fill="#1D8CE0" stroke-width="0"></path></marker>-->
    </defs>
</svg>
    <input type="hidden" id="currentIndex" value="${currentIndex}">
    <input type="hidden" id="counterplanId" value="${item.counterplanId}">
    <input type="hidden" id="counterplanType" value="${item.counterplanType}">
    <input type="hidden" id="step" value="${item.step}">
    <input type="hidden" id="reduction" value="">

<div id="wizard">
    <h1>接警</h1>
    <fieldset>
        <script>
            laydate.render({
                elem: '#startTime' //指定元素
                ,type: 'datetime'
            });
        </script>
        <div >
            <div class="ibox-content">
                <div class="form-horizontal" id="CounterplanTypeTemplateInform">
                    <p calss="p" style="font-size:16px">当前时间：<span id="Time"></span></p>
                    <p style="font-weight: bold;color: black;font-size: 20px">事故情况</p>
                    <div class="row">
                            <div class="col-sm-4 b-r">

                            <#inputAlarm id="accidentTypeName" name="事故类型" value="${item.accidentTypeName}"
                                    hidden="accidentTypeId" readonly="readonly" hiddenValue="${item.accidentTypeId}"
                                    clickFun="AlarmInfoDlg.showAccidentTypeSelectTree(); return false;"
                                    style="background-color: #ffffff !important;"
                                    selectFlag="true" selectId="accidentTypeTreeDiv" selectTreeId="accidentTypeTree"
                                    selectStyle="width:244px !important;"/>
                            <#inputAlarm id="lineName" name="事故线路" value="${item.lineName}"
                                    hidden="lineId" readonly="readonly"  hiddenValue="${item.lineId}"
                                    clickFun="AlarmInfoDlg.showLineTree(); return false;"
                                    style="background-color: #ffffff !important;"
                                    selectFlag="true" selectId="lineTreeDiv" selectTreeId="lineTree"
                                    selectStyle="width:244px !important;"/>

                                <div class="form-group">
                                    <label class="col-sm-4 control-label">事故地点</label>
                                    <div class="col-sm-5">
                                        <input class="form-control" id="stationName" name="stationName" value="${item.stationName}" type="text" readonly="readonly" onclick="AlarmInfoDlg.showStationTree(); return false;" style="background-color: #ffffff !important;">
                                        <input class="form-control" type="hidden" id="stationId" value="${item.stationId}">
                                        <div id="stationTreeDiv" style="display: none; position: absolute; z-index: 1000;">
                                            <ul id="stationTree" class="ztree tree-box" style="width:244px !important;"></ul>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                        <p><input style="vertical-align:middle" type="checkbox"  id="upstream" />上行</p>
                                        <p><input style="vertical-align:middle" type="checkbox"  id="downstreeam" />下行</p>
                                        <input type="hidden" id="stream" value="${item.stream}">
                                    </div>
                                </div>
                            <input type="hidden" id="checkCount" value="0">
                            <#inputAlarm id="trapPeoNum" name="影响人数(人)" value="${item.trapPeoNum}" />
                        </div>
                            <div class="col-sm-4 b-r">

                                <#SelectDictAlarm id="accidentLevel" name="事故响应等级" code="responseLevel"  value="${item.accidentLevel}" />
                                <#inputAlarm id="startTime" name="事故发生时间" type="text"  value="${item.startTime}"/>
                                <#inputAlarm id="trainNumber" name="事故发生车次" value="${item.trainNumber}"/>
                            </div>
                            <div class="col-sm-4 b-r">
                                <#inputAlarm id="emergencyName" name="突发事件类型" value="${item.emergencyName}"
                                        hidden="emergencyId" readonly="readonly"   hiddenValue="${item.emergencyId}"
                                        clickFun="AlarmInfoDlg.showEmergencySelectTree(); return false;"
                                        style="background-color: #ffffff !important;"
                                        selectFlag="true" selectId="emergencyTreeDiv" selectTreeId="emergencyTree"
                                        selectStyle="width:244px !important;"/>
                                <#inputAlarm id="emergencyproId" name="突发事件属性" value="${item.emergencyproId}"  clickFun="AlarmInfoDlg.emergencyPropertySel()"/>
                                <#inputAlarm id="trapNum" name="影响范围" value="${item.trapNum}" />
                            </div>
                    </div>
                </div>
            </div>
            <div class="ibox-content">
                <div class="form-horizontal" id="accidentInfoForm">
                    <div class="row">
                        <div>
                            <p style="font-weight: bold;color: black;font-size: 20px">现场情况</p>
                            <div class="row">
                                <div class="form-group">
                                    <div class="col-sm-4" >
                                        <div class="col-sm-4">
                                            <input id="closedStation" type="checkbox" value="${item.closedStation}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">车站封闭</lable>
                                        </div>
                                        <div class="col-sm-4">
                                            <input id="trainClearingMan" type="checkbox" value="${item.trainClearingMan}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">列车清人</lable>
                                        </div>
                                        <div class="col-sm-4">
                                            <input id="personalCasualty" type="checkbox" value="${item.personalCasualty}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable >人员伤亡</lable>
                                        </div>
                                        <div class="col-sm-12">
                                            <#inputAlarm id="lossPeoNum" name="伤亡人数(人)" value="${item.lossPeoNum}"></#inputAlarm>
                                        </div>
                                    </div>
                                    <div class="col-sm-4 ">
                                        <div class="col-sm-4">
                                            <input id="intervalEvacuation" type="checkbox" value="${item.intervalEvacuation}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">区间疏散</lable>
                                        </div>
                                        <div class="col-sm-4">
                                            <input id="largePassenger" type="checkbox"  value="${item.largePassenger}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">大客流聚集</lable>
                                        </div>
                                        <div class="col-sm-4">
                                            <input id="otherCheck" type="checkbox"  value="${item.otherCheck}"  style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">其它</lable>
                                        </div>
                                        <div class="col-sm-12">
                                            <#inputAlarm id="other" name="其它" value="${item.other}"></#inputAlarm>
                                        </div>
                                    </div>
                                    <div class="col-sm-4 ">
                                        <div class="col-sm-4">
                                            <input type="checkbox" id="operationInterruption"  value="${item.operationInterruption}" style="float:right"/>
                                        </div>
                                        <div class="col-sm-8 ">
                                            <lable class="">运营中断</lable>
                                        </div>
                                        <div class="col-sm-12 ">
                                            <#SelectDictAlarm id="interruptionType" name="中断类型" value="${item.interruptionType}" code="interruption_type"/>
                                        </div>
                                        <div class="col-sm-12 ">
                                            <#inputAlarm id="interruptionTime" name="中断时间(min)" value="${item.interruptionTime}" />
                                        </div>
                                        <button  id="jiejing" type="button" class="btn btn-info" onclick="AlarmInfoDlg.alarmSubmit()" >接警信息提交</button>
                                        <button id="busLinkage"   type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentBus()" disabled="true">公交应急联动</button>
                                        <#button btnCss="info" name="重置" id="ensure" icon="fa-check" clickFun="AlarmInfoDlg.delete()"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ibox-content">
                <div>
                    <p style="font-weight: bold;color: black;font-size: 18px">已采取处置措施及建议</p>
                </div>
                <div>
                    <textarea id="measuresToken"  style="width: 100%">${item.measuresToken}</textarea>
                </div>
            </div>
            <div class="ibox-content">
                <div>

                </div>
            </div>

        </div>
    </fieldset>
    <h1>处警</h1>
    <fieldset>
        <div class="row">
            <div class="form-group">
                <div class="col-sm-4">
                    <p calss="p" style="font-size:16px">当前时间：<span id="Time1" style="width: 300px;display:inline-block"></span></p>
                </div>
                <div class="col-sm-2">
                    <button  type="button" style="float: right;background: #00CD66" class="btn btn-info" onclick="AccidentInfoDlg.giveCall()">电话</button>
                </div>
                <div class="col-sm-2">
                    <button  type="button" style="background:#6495ED"  class="btn btn-info" onclick="AccidentInfoDlg.sendMessage()">短信</button>
                </div>
                <div class="col-sm-2">
                    <button  type="button" style="float: right" class="btn btn-info" onclick="AccidentInfoDlg.report()">系统消息</button>
                </div>
                <div class="col-sm-2">
                    <button id="chujing"  type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentTwo()">处警提交</button>
                </div>
            </div>

            <#table id="AccidentCounterplanSelTable"/>
        </div>
    </fieldset>
    <h1>编辑处置流程</h1>
    <fieldset>
        <div class="ibox float-e-margins">
            <div id="processEdit" style="width: 100%;height:500px"></div>
        </div>
        <div >
            <button id="editorFlow" type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentThree()">处置流程提交</button>
        </div>
    </fieldset>
    <h1>进入处置阶段</h1>
    <fieldset>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-8 b-r">
                        <div id="processExe" style="width:100%;height:500px;"></div>
                    </div>
                    <div class="col-sm-4">
                        <textarea id="report" class="form-control" rows="26"  readonly ></textarea>
                    </div>
                    <input id="disposition_step_txt" type="hidden" value="${item.dispositionStepTxt}">
                    <input id="disposition_step" type="hidden" value="${item.dispositionStep}">
                    <input id="accidentId" type="hidden" value="${item.accidentId}">
                </div>
            </div>
        </div>
        <div >
            <button id="accidentReport" type="button" class="btn btn-info" onclick="AccidentInfoDlg.accidentReportExport()" disabled="true">处置报告</button>
            <button id="finish" type="button" class="btn btn-info" onclick="AccidentInfoDlg.addSubmit()">完成</button>
        </div>
    </fieldset>
</div>


<script type="text/javascript" src="${ctxPath}/static/plugin/gooflow/GooFlow.js"></script>
<script src="${ctxPath}/static/js/plugins/staps/jquery.steps.min.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/accident_info1.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/accident_counterplan_sel.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/process_edit.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/process_execute.js"></script>
<script src="${ctxPath}/static/modular/yjya/alarm/alarm_info.js"></script>

@}
















